<?
$g4_path = ".."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
header("Expires:Mon,26 Jul 1997 05:00:00 GMT"); 
header("Last-Modified:".gmdate("D,d M Y H:i:s")."GMT"); 
header("Cache-Control:no-cache,must-revalidate");
header( "Content-type: text/html; charset=utf-8" ); 


$cookie_name = "POPUP_ID";
$cookieExpire = 60*60*24;

if($POP_ID!="")
{
	$cookie = get_cookie($cookie_name);
	if($cookie!="")
	{
		$tmpValue = explode("|",$cookie);
		if(!eregi($POP_ID,$cookie))
		{
			$tmpValue[] = $POP_ID;
		}
	}
	else
	{
		$tmpValue = array($POP_ID);
	}
	$cookieValue = implode("|",$tmpValue);
	set_cookie($cookie_name, $cookieValue, $cookieExpire);
}
//$TEMP_SESSION = $POPUP_ID.$POP_ID;

//set_session('POPUP_ID', $TEMP_SESSION);

echo("$POP_ID");
?>